package com.marce.remis.flexClient.view.base
{
	import com.marce.remis.flexClient.components.MyPanel;
	import com.marce.remis.flexClient.view.CarBarPanel;
	
	import flash.events.Event;
	
	import mx.effects.Resize;

	public class CarBarPanelBase extends MyPanel
	{
		private var _view:CarBarPanel;
		private var oldEffect:Resize;
		public function CarBarPanelBase()
		{
			super();
			this._view = this as CarBarPanel;
		}
		
		private function onInit(event:Event):void{
			oldEffect = this._view.effect;
			this.fija = true;
		}
		
		override public function set fija(value:Boolean):void{
			if(!value){
				oldEffect = this._view.effect;
				this._view.effect = null;
			}
			else if(oldEffect){
				this._view.effect = oldEffect;
			}
			super.fija = value;
		}
		
	}
}